#输出
# print("hello world")

 # 变量
# name = "horgen"
# ip = "192.168.106.129"
# print("你好")


#调用变量
# print("My name is", name)
# print("My IP is %s" % ip)
# print("ssh %s@%s" % (name,ip))


#数据类型转换
# num1 = int(input("请输入数字1:"))
# # num1 = int(num1)
# num2 = int(input("请输入数字2:"))
# # print (type(num1))
# print (num1 + num2)
print ("------------------")
#操作符
# 1、算术运算符
print(10+4)
print(10-4)
print(10*4)
print(10/4) # 浮点除
print(10//4) #地板除，整除
print ("------------------")
data_01 = 0
data_01 += 1
print(data_01)
print ("------------------")
#  2、比较运算符 == ！= > < <= >=
print(10 > 9)
print(10 == 9)
print ("------------------")
# 3、逻辑运算符 not and or
print(10 >8 and 10 < 20)
print(10>8or 6>10)
print(not 10>8)
print ("------------------")

# 产生随机数 random
import random
data_4 = random.randint(1,100)
print("随机数： %d" % data_4)

print ("------------------")

